package com.diamond.bo;

import java.io.Serializable;

public class MessageBO implements Serializable{
	/**
	 * 
	 */
	private static final long serialVersionUID = -8291256516858538141L;
	
	private Long messageId;
	private String name;
	private String content;
	private String author;
	private String msgType;
	private String msgTypeName;
	private String utime;
	
	public Long getMessageId() {
		return messageId;
	}
	public void setMessageId(Long messageId) {
		this.messageId = messageId;
	}
	public String getAuthor() {
		return author;
	}
	public void setAuthor(String author) {
		this.author = author;
	}
	public String getMsgType() {
		return msgType;
	}
	public void setMsgType(String msgType) { 
		this.msgType = msgType;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	public String getUtime() {
		return utime;
	}
	public void setUtime(String utime) {
		this.utime = utime;
	}
	public String getMsgTypeName() {
		if ("1".equals(this.getMsgType())){
			this.setMsgTypeName("钻石资料");
		} else if ("2".equals(this.getMsgType())) {
			this.setMsgTypeName("最新动态");
		}
		return msgTypeName;
	}
	public void setMsgTypeName(String msgTypeName) {
		this.msgTypeName = msgTypeName;
	}
	
}
